<?php
$page = isset($_GET['r']) ? $_GET['r'] : "";
?>
<!DOCTYPE HTML>
<html>
    <head>
        <meta charset="utf-8">
        <title>Avance - administrator</title>
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta name="description" content="">
        <meta name="author" content="">
        <META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW"> <!-- Remove this Robots Meta Tag, to allow indexing of site -->

        <link href="scripts/bootstrap/css/bootstrap.min.css" rel="stylesheet">
        <link href="scripts/bootstrap/css/bootstrap-responsive.min.css" rel="stylesheet">

        <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
        <!--[if lt IE 9]>
          <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
        <![endif]-->

        <!-- Icons -->
        <link href="scripts/icons/general/stylesheets/general_foundicons.css" media="screen" rel="stylesheet" type="text/css" />  
        <link href="scripts/icons/social/stylesheets/social_foundicons.css" media="screen" rel="stylesheet" type="text/css" />
        <!--[if lt IE 8]>
            <link href="scripts/icons/general/stylesheets/general_foundicons_ie7.css" media="screen" rel="stylesheet" type="text/css" />
            <link href="scripts/icons/social/stylesheets/social_foundicons_ie7.css" media="screen" rel="stylesheet" type="text/css" />
        <![endif]-->
        <link rel="stylesheet" href="scripts/fontawesome/css/font-awesome.min.css">
        <!--[if IE 7]>
            <link rel="stylesheet" href="scripts/fontawesome/css/font-awesome-ie7.min.css">
        <![endif]-->

        <link href="scripts/carousel/style.css" rel="stylesheet" type="text/css" />
        <link href="scripts/camera/css/camera.css" rel="stylesheet" type="text/css" />

<!--        <link href="http://fonts.googleapis.com/css?family=Syncopate" rel="stylesheet" type="text/css">
        <link href="http://fonts.googleapis.com/css?family=Abel" rel="stylesheet" type="text/css">
        <link href="http://fonts.googleapis.com/css?family=Source+Sans+Pro" rel="stylesheet" type="text/css">
        <link href="http://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet" type="text/css">
        <link href="http://fonts.googleapis.com/css?family=Pontano+Sans" rel="stylesheet" type="text/css">
        <link href="http://fonts.googleapis.com/css?family=Oxygen" rel="stylesheet" type="text/css">-->
        
        <link href="css/fontsgoogle.css" rel="stylesheet" type="text/css" />

        <link href="styles/custom.css" rel="stylesheet" type="text/css" />

        <script src="scripts/jquery.min.js" type="text/javascript"></script> 
        <script src="scripts/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
        <script src="scripts/default.js" type="text/javascript"></script>
        <script src="scripts/carousel/jquery.carouFredSel-6.2.0-packed.js" type="text/javascript"></script>
        <script src="scripts/camera/scripts/camera.min.js" type="text/javascript"></script>
        <script src="scripts/easing/jquery.easing.1.3.js" type="text/javascript"></script>
        <script src="js/jquery-ui-1.10.3.custom.js"></script>
        <link href="css/blitzer/jquery-ui-1.10.3.custom.css" rel="stylesheet">
        
        <!-- CKEditor -->
        <script src="js/ckeditor/ckeditor.js"></script>
        <script src="js/ckeditor/adapters/jquery.js"></script>
        
        <link href="css/backend.css" rel="stylesheet" type="text/css" />
        <script src="js/jqBootstrapValidation.js"></script>
        <link href="css/style.css" rel="stylesheet" type="text/css" />
        
        <script>
            $(function(){
                var Page = '<?= $page ?>';
                var Controller = Page.split("/");
               $(".nav-list a[href*='"+Controller[0]+"']").parent().addClass('active');
            });
        </script>
        <style>
            .container {
                width: 100% !important;
            }
            th, td{
                min-width: 2ex;
            }
        </style>
    </head>
    <body id="pageBody">

        <div id="divBoxed" class="container">

            <div class="transparent-bg" style="position: absolute;top: 0;left: 0;width: 100%;height: 100%;z-index: -1;zoom: 1;"></div>

            <div class="divPanel notop nobottom">
                <div class="row-fluid">
                    <div class="span12">

                        <div id="divLogo" class="pull-left">
                            <a href="#" id="divSiteTitle"><img src="images/company-logo.png" itemid="Avance" class="img-rounded"></a><br />
                            <a href="#" id="divTagLine"></a>
                        </div>

                        <div id="divMenuRight" class="pull-right">
                            <div class="navbar">
                                <h2 style="margin-top: 45px;margin-left: 70px;margin-right: 70px;font-weight: bold;">Admin Control Panel</h2>
<!--                                <button type="button" class="btn btn-navbar-highlight btn-large btn-primary" data-toggle="collapse" data-target=".nav-collapse">
                                    NAVIGATION <span class="icon-chevron-down icon-white"></span>
                                </button>
                                <div class="nav-collapse collapse">
                                    <ul class="nav nav-pills ddmenu">
                                        <li class="active"><a href="index.html">Home</a></li>
                                        <li><a href="about.html">About</a></li>
                                        <li class="dropdown">
                                            <a href="job.html" class="dropdown-toggle">Looking for job<b class="caret"></b></a>
                                            <ul class="dropdown-menu">                            
                                                <li><a href="#">Interview Guide</a></li>
                                                <li><a href="#">FAQ</a></li>
                                                <li><a href="#">Guides & Tips</a></li>
                                            </ul>
                                        </li>

                                        <li><a href="people.html">Looking for people</a></li>
                                        <li><a href="services.html">Services</a></li>						    
                                        <li><a href="contact.html">Contact</a></li>
                                    </ul>
                                </div>-->
                            </div>
                        </div>

                    </div>
                </div>
            </div>

            <div class="contentArea">
                <div class="divPanel notop page-content">
                    <div class="row-fluid">
                        <span class="span3">
                            <div class="well" style="padding: 8px 0;">
                                <ul class="nav nav-list">
                                    <li class="nav-header"><h5><i class="icon-list-alt"></i> Site Menu</h5></li>
                                    <li><a href="index.php?r=JobsManage/Main"><h5><i class="icon-briefcase"></i> Job Info</h5></a></li>
                                    <li><a href="index.php?r=StaffManage/View"><h5><i class="icon-user"></i> Job Seeker Info</h5></a></li>
                                    <li><a href="index.php?r=NewsManage/View"><h5><i class="icon-file"></i> News</h5></a></li>
                                    <li><a href="index.php?r=ClientManage/View"><h5><i class="icon-building"></i> Companies Info</h5></a></li>
                                    <li><a href="index.php?r=AdminLogin/Logout"><h5><i class="icon-off"></i> Log out</h5></a></li>
                                </ul>
                              </div>
                        </span>
                        <span class="span9" id="divMain">
                            <?php echo $content; ?>
                        </span>
                    </div>
                    <div id="footerInnerSeparator"></div>
                </div>
            </div>

            <div id="footerOuterSeparator"></div>

            <div id="divFooter" class="footerArea">

                <div class="divPanel">
                    <div class="row-fluid">
                        <div class="span12">
                            <p class="copyright">
                                Copyright © 2013 Avance Recruitment (Thailand) Co.,Ltd. All Rights Reserved.
                            </p>
                        </div>
                    </div>

                </div>
            </div>
        </div>
    </body>
</html>